public class Pool {
    public static int water = 0;
    public static void outlet(){
        if (water > 2){
            water = water - 2;
        }else{
            water = 0;
        }
    }
    public static void inlet(){
        water = water + 3;
    }

    public static void main(String[] args) {
        System.out.println(Pool.water);
        Pool.inlet();
        Pool.inlet();
        System.out.println(Pool.water);
        Pool.outlet();
        System.out.println(Pool.water);
    }
}
